﻿using System;
using BestEasyCMS.Framework.Domain;
using NPoco;

namespace BestEasyCMS.Model.Security
{
    [TableName("tb_Sec_Resources")]
    [PrimaryKey("Id")]
    [Serializable]
    public class Resource:EntityBase<long>,IAggregateRoot
    {
        /// <summary>
        /// 父ID
        /// </summary>
        public long ParentId { get; set; }
        /// <summary>
        /// 资源类型
        /// </summary>
        public int ResourceType { get; set; }
        /// <summary>
        /// 资源标题
        /// </summary>
        public string ResourceName { get; set; }
        /// <summary>
        /// 链接地址
        /// </summary>
        public string Url { get; set; }
        /// <summary>
        /// 排序 [数值越大越靠前]
        /// </summary>
        public int Sort { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnable { get; set; }


        protected override void Validate()
        {
            throw new NotImplementedException();
        }
    }
}
